package com.reggie.common;

public class BaseContext {
    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    //传递id
    public static void set(Long id) {
        threadLocal.set(id);
    }

    //返回id
    public static Long get() {
        return threadLocal.get();
    }
}
